{{assign var="title" value="会员等级列表"}}
{{include file="admin/intop.html"}}
<script type="text/javascript">
var closeListerner = function(){ window.location.reload(); }
function add(){
    showDialog("admin.php?ctl=user&act=type_add",420,180,"添加用户等级", true, closeListerner);
}
function edit(id){
    showDialog("admin.php?ctl=user&act=type_add&id="+id,420,180,"修改用户等级", true, closeListerner);
}
</script>
<div class="toolsBar">
     <input type="button" value="添加用户等级" onclick="add()" class="button_style">
</div>
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="table_list">
	<tr>
		<th>ID</th>
		<th>类型名称</th>
		<th>月利率</th>
		<th>操作</th>
	</tr>
	{{foreach from=$res.data item=item}}
	<tr>
		<td>{{$item.ID}}</td>
		<td class="lf">{{$item.TYPE_NAME}}</td>
		<td>{{$item.MONTHLY_RATE}}</td>
		<td><a id="GridView1_ctl02_hlkEdit" onclick="javascript:edit({{$item.ID}});">修改</a>
			| <a id="GridView1_ctl02_hlkDel" href="admin.php?ctl=user&act=type_del&id={{$item.ID}}">删除</a>
		</td>
	</tr>
	{{/foreach}}
	{{if $res.count}}
		<tr class="bottom"><td colspan="10" class="page">{{$res.page}}</td></tr>
	{{else}}
		<tr><td colspan="10">没有数据记录</td></tr>
	{{/if}}
</table>
{{include file="admin/infoot.html"}}